﻿

CREATE FUNCTION [dbo].[resuma_GetSporFormat]
(
	@IDTipSpor int
)
RETURNS VARCHAR(2)
AS
BEGIN
	-- Declare the return variable here
	DECLARE @ResultVar varchar(2)

	-- Add the T-SQL statements to compute the return value here
	SELECT @ResultVar=Format From TipSpor WHERE IDTipSpor =@IDTipSpor

	-- Return the result of the function
	RETURN @ResultVar

END